import { createBrowserRouter } from 'react-router-dom'
import Index from '../views/index'
import Login from '../views/login'
import NotFoundPage from '../views/Notfound'
import App from '../views/test'
import Cakes from '../views/cakes'
import Ltd from '../views/ltdArea'
import About from '../views/about'
import Register from '../views/register'
import CompanyInfo from '../views/companyInfo'
import CakeInfo from '../views/cakeInfo'
import Cart from '../views/cart'



const router = createBrowserRouter([{
        path: '/',
        element:<Index />
    },{
        path: '/login',
        element: <Login />
    },{
        path:'/test',
        element: <App />
    },{
        path:'/cakes',
        element:<Cakes />
    },{
        path:'/ltd',
        element: <Ltd />
    },{
        path:"/about",
        element: <About />
    },{
        path:"/register",
        element:<Register />
    },{
        path:'/companyInfo',
        element:<CompanyInfo />
    },{
        path:'/cakeInfo',
        element: <CakeInfo />
    },{
        path:"/cart",
        element:<Cart />
    },{
        path:'*',
        element: <NotFoundPage />
    }
])

export default router